TELDeflectCall
Deflects an incoming call to another directory number.
pascal TELErr TELDeflectCall ( TELCAHandle hTELCA, ConstStr255Param rmtDN, ConstStr255Param rmtName, ConstStr255Param rmtSubaddress);
hTELCA
- A handle to a call appearance structure for the incoming call. You obtain this handle from a
telCAAlertingMsg
or atelCAOfferMsg
message.rmtDN
- A pointer to a Pascal-style string containing the directory number to which the call is to be deflected.
rmtName
- A pointer to a Pascal-style string containing the name of the party associated with the directory number to which the call is to be deflected. This is an optional parameter--if you don't have the name, set the pointer to
nil
.rmtSubaddress
- A pointer to a Pascal-style string containing the subaddress, as defined by the ISDN S-Bus specification, of the directory number to which the call is to be deflected. You should set this parameter if the telephone network supports subaddressing. To find out, call the
TELGetInfo
function and check the bithasSubaddress
in the telephone structure.- function result
- A result code.
DESCRIPTION
When your call appearance message handler gets atelCAAlertingMsg
or atelCAOfferMsg
message, you can call theTELDeflectCall
function to redirect the incoming call to another directory number if the call is deflectable. (A call is deflectable when thedeflectable
bit is set in theotherFeatures
field of the call appearance structure.)When
TELDeflectCall
returnsnoErr
, the state of the call appearance changes from eithertelCAAlertingState
ortelCAOfferState
totelCAIdleState
. When your call appearance message handler gets thetelCAIdleMsg
message, you should dispose of the call appearance structure by calling theTELCADispose
function (page 4-52).If
TELDeflectCall
returns an error, your application can either answer the incoming call or ignore it.
Main | Top of Section | What's New | Apple Computer, Inc. | Find It | Feedback | Help